import { defineStore } from 'pinia';

const useConfigDate = defineStore('dateId', {
    state: () => {
        return {
            nowDate: new Date()
        }
    },
    actions: {
        getTimeNow() {
            setInterval(() => {
                this.nowDate = new Date()
            }, 1000);
        },
    }
})

export default useConfigDate